<?php
class Client extends Doctrine_Record {
    public function setTableDefinition() {
        $this->setTableName('client');
        $this->hasColumn('value', 'string', 255);
        $this->hasColumn('id_about', 'integer');
    }
    
    public function setUp(){
        $this->hasOne('About as about',array(
            'local'=>'id_about',
            'foreign'=>'id'
        ));
    }
    
    //GETTERS Y SETTERS
    public function getValue () {
        return utf8_decode($this->_get('value'));
    }
    public function setValue ($q) {
        $this->_set('value', utf8_encode($q));
    }
    //FIN GETTERS Y SETTERS
}
?>